package com.ajream.service.impl;

import com.ajream.entity.Student;
import com.ajream.mapper.StudentMapper;
import com.ajream.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class StudentServiceImpl implements StudentService {
    @Resource
    StudentMapper studentMapper;

    @Override
    public Student findBySid(String sid) {
        return studentMapper.findByStudentId(sid);
    }

    @Override
    public List<Student> findAll() {
        return studentMapper.findAll();
    }


}
